home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 17
/
CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso
/
CUCD
/
Programming
/
DiceSource
/
src
/
alib
/
csup
/
commodities_support
/
hotkey.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-02-15
|
555b
|
31 lines
#include <exec/types.h>
#include <exec/libraries.h>
#include <libraries/commodities.h>
#include <clib/commodities_protos.h>
#include <pragmas/commodities_pragmas.h>
extern struct Library * __far CxBase;
CxObj *HotKey(STRPTR descr, struct MsgPort *port, LONG ID)
{
CxObj *filter;
if (filter = CxFilter(descr))
{
AttachCxObj(filter,CxSender(port,ID));
AttachCxObj(filter,CxTranslate(NULL));
if (CxObjError(filter))
{
DeleteCxObjAll(filter);
filter = NULL;
}
}
return (filter);
}